package com.haixiaoke.saas.workOrder.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 工单跟进记录对象 biz_work_order_record
 *
 * @author qixi
 * @date 2024-09-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkOrderRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 工单记录id */
    private Long recordId;

    /** 工单id */
    @Excel(name = "工单id")
    @NotNull(message = "工单id不能为空")
    private String workOrderId;

    /** 记录类型: 1全可见 2企业可见 3用户可见*/
    @Excel(name = "记录类型:")
    private String recordType;

    /** 显示类型: 1订单已生成 2订单已修改 3等待接单中 4订单已接单 5预计上门时间 6上传图片（服务前）7上传图片（服务后） 8待缴费 9订单已完成 10订单已评价 11订单已取消 */
    @Excel(name = "显示类型: 1订单已生成 2订单已修改 3等待接单中 4订单已接单 5预计上门时间 6上传图片（服务前）7上传图片（服务后） 8待缴费 9订单已完成 10订单已评价 11订单已取消")
    private String userDisplayType;

    /** 记录内容 */
    @Excel(name = "记录内容")
    private String recordContent;

    /** 记录图片 */
    @Excel(name = "记录图片")
    private String recordImg;

    /** 接单人 */
    @Excel(name = "接单人")
    private String receiverUser;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 自定义字段:审核状态:0.不同意;1.同意
     */
    private String auditDenial;

    public WorkOrderRecord(String workOrderId, String recordType, String userDisplayType, String recordContent, String recordImg, String receiverUser, Date createTime) {
        this.workOrderId = workOrderId;
        this.recordType = recordType;
        this.userDisplayType = userDisplayType;
        this.recordContent = recordContent;
        this.recordImg = recordImg;
        this.receiverUser = receiverUser;
        this.createTime = createTime;
    }
}
